package com.dmwork.service.work.feign;

import com.dmwork.common.base.result.R;
import com.dmwork.service.base.model.FileUrlVo;
import com.dmwork.service.work.feign.impl.OssFileFeignServiceFallback;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Service
@FeignClient(value = "service-oss-center", fallback = OssFileFeignServiceFallback.class)
public interface OssFileFeignService {

    @DeleteMapping("/dm_work/oss/file/remove")
    R removeFile(@ApiParam("文件url") @RequestBody String url);

    @DeleteMapping("/dm_work/oss/file/batch_remove")
    R removeBatchFile(@RequestBody FileUrlVo fileUrlVo);
}
